* {
    list-style: none;
    margin: 0;
    padding: 0;
}

@keyframes shake {
    0% {
        transform: skewX(0deg);
    }

    10% {
        transform: skewX(-15deg);
    }

    30% {
        transform: skewX(10deg);
    }

    50% {
        transform: skewX(-5deg);
    }

    70% {
        transform: skewX(5deg);
    }

    90% {
        transform: skewX(-2deg);
    }

    100% {
        transform: skewX(0deg);
    }
}

@keyframes music {
    10% {
        height: 30%;
    }

    30% {
        height: 90%;
    }

    60% {
        height: 50%;
    }

    80% {
        height: 70%;
    }

    100% {
        height: 40%;
    }
}
html {
    height: 100vh;
    background-color: #eee;
}

/* box */
.box {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;

}

/* b1 */
.b1 button {
    padding: 20px 40px;
    text-align: center;
    font-size: 20px;
    background-color: rgb(219, 123, 26);
    outline: none;
    border: none;
    color: #fff;
    position: relative;
    left: 0;
    top: 0;
    z-index: 0;
    overflow: hidden;
    display: block;
    margin-bottom: 10px;
}

.b1 button span {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 50%;
    height: 100px;
    width: 100px;
    background-color: rgba(57, 58, 58, 0.548);
    z-index: -1;
    transform: scale(0);
    transition: transform 0.5s, background 0.5s;
    pointer-events: none;

}

.b1 .btn1:hover span {
    transform: scale(2);
    background-color: cadetblue;
}

/* b2 */
.b2 .btn1 {
    background-color: teal;
    color: #fff;
    text-align: center;
    outline: none;
    padding: 20px 40px;
    border: none;
    font-size: 20px;
    transform-origin: 50% 0;
}

.b2 .btn1:hover {
    animation-name: shake;
    animation-duration: 1s;
    animation-timing-function: linear;
}

.b2 .btn2 {
    padding: 20px 40px;
    background-color: rgb(224, 36, 22);
    color: white;
    border: none;
    outline: none;
    font-size: 24px;
    position: relative;
    z-index: 0;
    overflow: hidden;
}

.b2 .btn2:hover {
    transition: all 1s;
}

.b2 .btn2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 100%;
    background: rgba(32, 178, 171, 0.3);
    z-index: -2;
    transition: inherit;
}

.b2 .btn2::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: transparent; */
    background-image: radial-gradient(circle at 5% 75%, transparent 2.5%, white 4%, transparent 4.5%),
        radial-gradient(circle at 25% 75%, transparent 1%, white 3%, transparent 3.5%),
        radial-gradient(circle at 35% 75%, transparent 1.5%, white 4%, transparent 4.5%),
        radial-gradient(circle at 15% 85%, transparent 2.5%, white 5%, transparent 5.5%),
        radial-gradient(circle at 45% 55%, transparent 0.5%, white 1.5%, transparent 2%),
        radial-gradient(circle at 45% 75%, transparent 1.5%, white 2.5%, transparent 3%);
    background-repeat: no-repeat;
    background-size: 200% 200%;
    z-index: -1;
    transition: inherit;
}

.b2 .btn2:hover::before {
    top: 0%;
    background: rgba(32, 178, 171, 1);
}

.b2 .btn2:hover::after {
    opacity: 0;
    background-position: 1% 100%, 0 180%, -3% 120%, 0 190%, 5% 100%, 7% 120%;
}

/* b3 */

.b3 {
    text-align: center;
}

.b3 .b3Box {
    display: flex;
    justify-content: center;
}

.b3 .b3Box .btn3 {
    display: flex;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: #fff;
    margin: 10px;
    z-index: 0;
    position: relative;
    transition: all .4s;
    transition-timing-function: cubic-bezier(0.31, -0.105, 0.43, 1.59);
    overflow: hidden;
}

.b3 .b3Box .btn3 i {
    margin: auto;
    font-size: 30px;
    transition: inherit;
    transform: scale(0.8);
}

.b3 .b3Box .btn3:hover i {
    transform: scale(1);
}

.b3 .b3Box .btn3::before {
    content: "";
    position: absolute;
    width: 120%;
    height: 120%;
    top: 90%;
    left: -110%;
    border-radius: 20px;
    z-index: -1;
    transform: rotate(45deg);
    transition: inherit;
    background-color: red;
}

.b3 .b3Box .btn3:hover::before {
    top: -10%;
    left: -10%;
}

.b3 .b3Box .btn3:nth-of-type(1) i {
    color: #bf00ff;
}

.b3 .b3Box .btn3:nth-of-type(2) i {
    color: #3b5998;
}

.b3 .b3Box .btn3:nth-of-type(3) i {
    color: #24292e;
}

.b3 .b3Box .btn3:nth-of-type(4) i {
    color: #cd0001;
}

.b3 .b3Box .btn3:nth-of-type(5) i {
    color: #00aff0;
}

.b3 .b3Box .btn3:nth-of-type(1)::before {
    background-color: #bf00ff;
}

.b3 .b3Box .btn3:nth-of-type(2)::before {
    background-color: #3b5998;
}

.b3 .b3Box .btn3:nth-of-type(3)::before {
    background-color: #24292e;
}

.b3 .b3Box .btn3:nth-of-type(4)::before {
    background-color: #cd0001;
}

.b3 .b3Box .btn3:nth-of-type(5)::before {
    background-color: #00aff0;
}

.b3 .b3Box .btn3:nth-of-type(n):hover i {
    color: white;
}

/* b4  */
.b4 {
    text-align: center;
}

.b4 ul {
    margin: 10px auto;
    width: 220px;
    display: flex;
    flex-direction: row-reverse;

}

.b4 ul .star {
    margin-right: 10px;
    cursor: pointer;
    position: relative;
    height: 40px;
    width: 40px;
}

.b4 ul .star i {
    color: #ffd700;
    font-size: 40px;
    transition: all .5s;
    transform: scale(1);
    position: absolute;
}

.b4 ul .star i:first-child {
    opacity: 1;
}

.b4 ul .star i:last-child {
    opacity: 0;
}

/* ~选择器 获取之后的元素 */
.b4 ul .star:hover i:first-child,
.b4 ul .star:hover~.star i:first-child {
    opacity: 0;
}

.b4 ul .star:hover i:last-child,
.b4 ul .star:hover~.star i:last-child {
    opacity: 1;
}

.b4 ul .star:hover i {
    transform: scale(1.2);
}

/* b5 */
.b5{
    text-align: center;
}
.b5 .b5Box {
    margin-top: 10px;
    height: 40px;
    width: 40px;
    border-radius: 5px;
    background-color: #393939;
    padding: 5px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
}

.b5 .b5Box span {
    width: 20%;
    background-color: #fff;
    animation-name: music;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
    animation-timing-function: ease;
}

.b5 .b5Box span:nth-child(1) {
    height: 50%;
    animation-delay: -2s;
}

.b5 .b5Box span:nth-child(2) {
    height: 70%;
    animation-delay: -4s;
}

.b5 .b5Box span:nth-child(3) {
    height: 90%;
}
